var BaseController = new require("./basecontroller");

function Controller(){
  BaseController.call(this);
}

Controller.prototype = Object.create (BaseController.prototype);
Controller.prototype.constructor = Controller;
Controller.prototype.FORM_ENTRIES = Array("name", "address" , "contact_number", "contact_person", "ip", "status");
Controller.prototype.SEARCH_ENTRIES = Array("name", "address" , "contact_number", "contact_person", "ip", "status");
Controller.prototype.TABLE = "company"; //table for this controller
Controller.prototype.CONTROLLER = "admin"; //controllername
Controller.prototype.PAGE = Controller.prototype.CONTROLLER;
Controller.prototype.FORM_VIEW = "admin/company-form";
Controller.prototype.LIST_VIEW = "admin/index";
Controller.prototype.RECORDS_PER_PAGE = 20;

Controller.prototype.LIST_JOIN_TABLES = 
		{"company_id" : //field
			{ 							
				table : "company",//table
				joinType : "left",
				fields: Array('id','name')//fields to retrieve
			}
	        /*
	         * other joining table
	         * 
	         */
		}; 

Controller.prototype.FORM_JOIN_TABLES = Controller.prototype.LIST_JOIN_TABLES
module.exports = new Controller();

